import java.util.Scanner;

/**
 * Created by JiaJia on 2019/6/8 0008.
 */
public class HuaWei101 {
    /**
     * 分子为1的分数称为埃及分数。现输入一个真分数(分子比分母小的分数，叫做真分数)，请将该分数分解为埃及分数。
     * 如：8/11 = 1/2+1/5+1/55+1/110。
     */
    private static String convert(String real) {

        String[] parts = real.split("/");

        // 分子
        int a = Integer.parseInt(parts[0]);
        // 分母
        int b = Integer.parseInt(parts[1]);
        StringBuilder builder = new StringBuilder(64);
//        System.out.print("[1]" + a + "/" + b + ": ");

        while (b % a != 0) {
            // 求商
            int q = b / a;
            // 余数
            int r = b % a;

            builder.append(1).append('/').append(q + 1).append('+');
            a = a - r;
            b = b * (q + 1);

        }

        builder.append(1).append('/').append(b / a);


        return builder.toString();
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
//        Scanner scanner = new Scanner(Main.class.getClassLoader().getResourceAsStream("data.txt"));
        while (scanner.hasNext()) {
            String real = scanner.next();
//            System.out.println(convert(real));
//            System.out.println(convert2(real));
            System.out.println(convert(real));
        }
        scanner.close();
    }
}